package com.ljx.funchat.chat.domain.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 抢红包记录表
 * </p>
 *
 * @author LiJunXi
 * @since 2024-02-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("tb_redbag_record")
@Builder
public class RedbagRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 红包ID
     */
    @TableField("redbag_id")
    private Long redbagId;

    /**
     * 用户ID
     */
    @TableField("uid")
    private Long uid;

    /**
     * 抢到的金额
     */
    @TableField("money")
    private Integer money;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;


}
